# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils git 

DESCRIPTION="Reinteract is a system for interactive experimentation with python.
(git)"
HOMEPAGE="http://reinteract.org/"
EGIT_REPO_URI="git://git.fishsoup.net/reinteract"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=${REDEPEND}
RDEPEND="dev-lang/python"

src_compile() {
	NOCONFIGURE=1 ./autogen.sh || die "autogen.sh failed."
	econf || die "configure failed."
	emake || die "make failed."
}

src_install() {
	python_version
	make DESTDIR=${D} install || die "install failed."
	cp lib/${PN}/*.py ${D}usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
}
